package org.spark.api.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.spark.api.annotation.HBaseColumn;
import org.spark.api.annotation.HBaseTable;

import java.io.Serializable;

/**
 * @author chenwy
 */
@HBaseTable(namespace = "dy", qualifier = "details-product-date-author-aweme")
public class DetailsProductDateAuthorAweme implements Serializable {


    @HBaseColumn(column = "pi")
    private String productId;

    @HBaseColumn(column = "ai")
    private String authorId;

    @HBaseColumn(column = "awi")
    private String awemeId;

    @HBaseColumn(column = "d")
    private String date;

    @HBaseColumn(column = "v", useMsgPack = true)
    private long volume;

    @HBaseColumn(column = "a", useMsgPack = true)
    private double amount;

    public String getProductId() {
        return productId;
    }

    @JsonProperty("product_id")
    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getAuthorId() {
        return authorId;
    }

    @JsonProperty("author_id")
    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAwemeId() {
        return awemeId;
    }

    @JsonProperty("aweme_id")
    public void setAwemeId(String awemeId) {
        this.awemeId = awemeId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public long getVolume() {
        return volume;
    }

    public void setVolume(long volume) {
        this.volume = volume;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "DetailsProductDateAuthorAweme{" +
                "productId='" + productId + '\'' +
                ", authorId='" + authorId + '\'' +
                ", awemeId='" + awemeId + '\'' +
                ", date='" + date + '\'' +
                ", volume=" + volume +
                ", amount=" + amount +
                '}';
    }
}
